package com.hongying.service.impl;

import com.hongying.annotations.Log;
import com.hongying.config.UserAop;
import com.hongying.service.UserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    Logger log = LoggerFactory.getLogger(UserServiceImpl.class);


    @Log(name = "获取名字")
    @Override
    public String getName() {
        int i = 1 / 0;
        log.info("abc");
        return "abc";
    }
}
